import mongoose from 'mongoose';
const LoginHistorySchema = new mongoose.Schema({
  userId: mongoose.Schema.Types.ObjectId,
  ip: String,
  geo: Object,
  timestamp: { type: Date, default: Date.now }
});
export default mongoose.model('LoginHistory', LoginHistorySchema); 